-
Notifications
You must be signed in to change notification settings - Fork 277
Use struct tags #2926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use struct tags #2926
Conversation
83cfc7d
to
38a33e7
Compare
38a33e7
to
953326b
Compare
953326b
to
a21cd68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving with some formatting requests (and assuming CI will pass).
src/ansi-c/c_typecheck_type.cpp
Outdated
typet tag_type; | ||
|
||
if(type.id() == ID_union || type.id()==ID_incomplete_union) | ||
tag_type=union_tag_typet(identifier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit pick: spacing around =
(here and below).
else if(type.id() == ID_symbol_type) | ||
else if( | ||
type.id() == ID_symbol_type || type.id() == ID_struct_tag || | ||
type.id() == ID_union_tag) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add braces around the (one-line) body for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: a21cd68).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85338055
a21cd68
to
04c26c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passed Diffblue compatibility checks (cbmc commit: 04c26c4).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/85349549
It should be mentioned that the transition to struct and union tags was a ~5 year project! |
No description provided.